package edu.sctu.practice.class02.Wangpeng.Dtest5;
import java.io.*;
import java.util.StringTokenizer;
/**
 * Created by wp on 2015/12/17.
 */
public class ChineseCharacters {
    public StringBuffer getChinesecharacters(File file){
        StringBuffer hanzi=new StringBuffer();
        try{
            FileReader inOne = new FileReader(file);
            BufferedReader inTwo = new BufferedReader(inOne);
            String s = null;
            int i=0;
            while((s="")!=null){
                StringTokenizer tokenizer=new StringTokenizer(s,",'\n'");
                while (tokenizer.hasMoreTokens()){
                    hanzi.append(tokenizer.nextToken());
                }
            }
        }catch (Exception e){}
        return hanzi;

    }
}
